package com.guoxin.part4.chapter21;

/**
 * @author guoxin
 * @date 2019/8/31
 */
public final class ApplicationContext {

    private ApplicationConfigration configration;
    private RuntimeInfo runtimeInfo;

    private static class Holder{
        private static ApplicationContext instance = new ApplicationContext();
    }

    public static ApplicationContext getContext(){
        return Holder.instance;
    }

    public ApplicationConfigration getConfigration() {
        return configration;
    }

    public void setConfigration(ApplicationConfigration configration) {
        this.configration = configration;
    }

    public RuntimeInfo getRuntimeInfo() {
        return runtimeInfo;
    }

    public void setRuntimeInfo(RuntimeInfo runtimeInfo) {
        this.runtimeInfo = runtimeInfo;
    }

    private static class ApplicationConfigration{}
    private static class RuntimeInfo{}

}
